package com.zzy.test;

import weibo4j.Timeline;
import weibo4j.examples.oauth2.Log;
import weibo4j.model.WeiboException;
import weibo4j.org.json.JSONObject;

/**
 * 根据用户id或者用户名
 * 得到公司最近微博
 * @author eason
 *
 */
public class GetUserTimelineIds {
	public static void main(String[] args) {
		String access_token = "2.008iGhsCgrdWgDebec65d6c60B_qJ8";
		Timeline tm = new Timeline();
		tm.client.setToken(access_token);
		try {
			JSONObject ids1 = tm.getUserTimelineIdsByName("VANCL粉丝团");
			Log.logInfo(ids1.toString());
		} catch (WeiboException e) {
			e.printStackTrace();
		}
	}
}
